#include <iostream>
#include <cstring>
#include <cerrno>
#include <sys/types.h>          /* See NOTES */
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include "udpserver.hpp"
int main(int argc, char* args[])
{
    if(argc != 2)
    {
        std::cout << "Usage: \n";
        std::cout << args[0] << " port\n";
        return 0;
    }
    uint16_t port = std::stoi(args[1]);
    UdpServer svr(port);
    svr.Init();
    svr.Start();
    return 0;
}
